
<script type="text/javascript">
	JQ(document).ready(function()
	{
		//hide the all of the element with class msg_body
		<?php if ($this->params->default_status == "hidden"): ?>
		JQ("#jquery-expander_body_<?php echo $this->params->id; ?>").hide();
		<?php endif;?>
		
		//toggle the component with class msg_body
		JQ("#jquery-expander_header_<?php echo $this->params->id; ?>").click(function()
		{
			JQ(this).next("#jquery-expander_body_<?php echo $this->params->id; ?>").slideToggle(<?php echo $this->params->time; ?>);
		});
	});
</script>

<div id="jquery-expander_<?php echo $this->params->id; ?>" class="jquery-expander<?php echo $this->params->css_suffix; ?>">
	<p id="jquery-expander_header_<?php echo $this->params->id; ?>" class="jquery-expander_header<?php echo $this->params->css_suffix; ?>"><?php echo $this->params->header; ?></p>
	<div id="jquery-expander_body_<?php echo $this->params->id; ?>" class="jquery-expander_body<?php echo $this->params->css_suffix; ?>"><?php $this->params->view_target->render(); ?></div>
</div>
